## Applicability Knuth's optimization applies when the dynamic programming recurrence is approximately of the form $$ \mathrm{dp}[i][j] = \min_{i